Drainage and Utilities Help

Database Connection

SCADAConnect can read data from a variety of sources. The Database Connection method helps to establish a communication to a SCADA file. A file can be accessed (or opened) using different methods (or drivers) such as ODBC, OLEDB or SQL. To simplify this to a general hydraulic modeler, SCADAConnect offers two additional methods where modeler can simply specify a file such as Excel or These direct file methods also uses OLEDB method. Following are the methods you can select to provide information about your SCADA data.

  1. Access File
  2. Access 2.0
  3. Access 2003/2002/2000 (4.0)
  4. Access 2007 (12.0)
  5. Access 97/7.0(3.0)
  6. Excel File
  7. Excel 2003/ XP /2000/97 (8.0)
  8. Excel 2007 (12.0)
  9. Excel 3.0
  10. Excel 4.0
  11. Excel 95/5.0 (5.0)
  12. ODBC Source
  13. More options are available under Connection Properties
  14. OLEDB Source
  15. More options are available under Connection Properties
  16. SQL Connection
  17. More options are available under Connection Properties

To create a new connection,

  1. Within SCADAConnect, go to Tools > Connection Manager.
  2. The Connection Manager opens.

  3. Click the New button to create a new connection.
  4. Go to Database Connection for creating a connection using database option.
  5. Rename the newly created Database Connection to a suitable name such as Access DB Connection. It's always a good idea to name the Database Connection similar to the data source as this Database Connection will be used at other location such as Data Source Manager.
  6. Select a data source type from Database: Connection Details group.
  7. For Example: Select Access 2003/2002/2000 (4.0) from the drop down.
  8. Click on the Browse button and provide your Access file or Excel file. Connection String box will automatically be filled in with the appropriate connection string.
  9. Connection String is a special string which contains the information that the provider needs to know to be able to establish a connection to the database or the data file. It is a passed in code to an underlying driver or provider in order to initiate the connection.
  10. Click on Test Connection button. This button normally validates the path, file format, and existence of the file. You should see a "Connection Succeeded" message box.
  11. The Advanced button allows changing the prefixes and suffixes for the Name and Date/Time field. Under advanced circumstances only, these delimiters need changes; otherwise default should work.
Note: The Browse button will show a Connection Properties window when selected data source type is, ODBC Source or, OLEDB Source or, SQL Connection.
Note: If you receive any message other than "Connection Succeeded" like "Could not open connection" then make sure you made the right selection or provided the right options. If you are still not getting the "Connection Succeeded" message, check the log file. Go to Enable Advanced Logging for more details.

Potential Database Connect Issues

When setting up a database connection, the user should pick the Test Connection button before leaving the database source setup. When an error occurs, a common source for the error is a mismatch between a 32-bit database engine and a 64-bit hydraulic model or vice versa. The user can either select the version of the hydraulic model that matches the database or modify the database engine to match the hydraulic model.

When opening a 64-bit database file from 32-bit model, the message is:

"This file type requires the Microsoft Access Database Engine 2010 (32-bit) to be installed. Please contact your system administrator."

When opening a 32-bit database file from a 64-bit model, the message is:

"This file type requires the Microsoft Access Database Engine 2010 (64-bit) to be installed. Please contact your system administrator."

To check on the bitness of the hydraulic model, the use should open the Welcome dialog (File > Help > Welcome dialog) and the bitness is displayed at the bottom of the dialog. In general, the 64-bit version of the Bentley hydraulic model opens by default. The 32-bit version can be opened from:

C:\Program Files (x86)\Bentley\[product name]\[product name].exe

Where [product name] is WaterGEMS, CivilStorm, etc.

To obtain a different version of the Microsoft database engine, go to the "Microsoft Access Database Engine" from www.microsoft.com.

This issue also affects ModelBuilder imports. The user can obtain more details from the following wiki article:

http://communities.bentley.com/products/hydraulics___hydrology/w/hydraulics_and_hydrology__wiki/9388.modelbuilderscadaconnect-error-microsoft-access-database-engine-2010-64-bit-is-required-to-access-this-data-source